from lxml import etree
html_tree = etree.parse('asa.html')
# doc = html_tree.xpath('//ul/li')
# print(doc)
# doc = html_tree.xpath('//body/ul/li/text()')
# print(doc)
# doc = html_tree.xpath('//ul/li[@id]/text()')
# print(doc)
# doc = html_tree.xpath('//ul/li[@id="皖"]/text()')
# print(doc)
doc = html_tree.xpath('//ul/li[@id="皖"]/@class')
print(doc)


